package com.young.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * trigger调度器的服务节点，master + slave
 */
public class BrokerDO implements Serializable {

    private int id;
    private String ip;
    private String hostName;

    private Date createTime;
    /**
     * 更新时间，可以用来确认server的活性
     */
    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
